package net.xo68.destiny.contract.domain.job;

import com.fasterxml.jackson.annotation.JsonIgnore;
import net.xo68.destiny.contract.enums.job.JobDetailExtendEnums;

import java.util.LinkedHashMap;

/**
 * 触发参数扩展
 * @author wuxie
 * @version 2020-12-18
 */
public class JobDetailExtends extends LinkedHashMap<String,String> {


    @JsonIgnore
    public String getSourceCode(){
        return this.get(JobDetailExtendEnums.SOURCE_CODE.name());
    }
    public void setSourceCode(String sourceCode){
        this.put(JobDetailExtendEnums.SOURCE_CODE.name(),sourceCode);
    }
    @JsonIgnore
    public String getJsonConfig(){
        return this.get(JobDetailExtendEnums.JSON_CONFIG.name());
    }
    public void setJsonConfig(String jsonConfig){
        this.put(JobDetailExtendEnums.JSON_CONFIG.name(),jsonConfig);
    }

    @JsonIgnore
    public String getYamlConfig(){
        return this.get(JobDetailExtendEnums.YAML_CONFIG.name());
    }
    public void setYamlConfig(String yamlConfig){
        this.put(JobDetailExtendEnums.YAML_CONFIG.name(),yamlConfig);
    }

    @JsonIgnore
    public String getXmlConfig(){
        return this.get(JobDetailExtendEnums.XML_CONFIG.name());
    }
    public void setXmlConfig(String xmlConfig){
        this.put(JobDetailExtendEnums.XML_CONFIG.name(),xmlConfig);
    }

    @JsonIgnore
    public String getStateData(){
        return this.get(JobDetailExtendEnums.STATE_DATA.name());
    }
    public void setStateData(String stateData){
        this.put(JobDetailExtendEnums.STATE_DATA.name(),stateData);
    }
}
